package com.xlh.dokka.svc.dao;

import com.xlh.dokka.svc.core.model.Container;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author cheer
 */
@Repository
public interface DokkaContainerMapper {

    int insert(Container container);

    int deleteById(Long id);

    Container getById(Long containerId);

    List<Container> listGpuContainers();

    List<Container> listByIds(@Param("ids") List<Long> ids);

    int insertErrorContainer(@Param("host") String host, @Param("dockerId") String dockerId);

    List<Container> listErrorContainers();

    int deleteErrorContainerById(Long id);
}
